package com.gdqy.FCS.entity;

import java.util.Date;
import java.util.List;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

public class User {
    private Integer id;
    
   
    @NotEmpty(message="{user.email.isNull}")
    private String email;
    
    
    @NotEmpty(message="{user.username.isNull}")
    private String username;

    @Length(min=8,max = 16,message ="{user.password.lenth.error}")
    @NotEmpty(message="{user.password.isNull}")
    private String password;

    @NotEmpty(message="{user.role.isNull}")
    private String role;

    private Date reg_datetime;
    
    private String reg_time;
     
    private String validate_code;
    
    private Date validate_time;
    
    private String photo_link;
    
    public String getValidate_code() {
		return validate_code;
	}

	public void setValidate_code(String validate_code) {
		this.validate_code = validate_code;
	}


	public Date getValidate_time() {
		return validate_time;
	}

	public void setValidate_time(Date validate_time) {
		this.validate_time = validate_time;
	}


	private Integer status;
    
    private String phone;
    
    private Dictionary dictionary;
    
    
    
    
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}

	public Date getReg_datetime() {
		return reg_datetime;
	}

	public void setReg_datetime(Date reg_datetime) {
		this.reg_datetime = reg_datetime;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Dictionary getDictionary() {
		return dictionary;
	}

	public void setDictionary(Dictionary dictionary) {
		this.dictionary = dictionary;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}


	public String getReg_time() {
		return reg_time;
	}

	public void setReg_time(String reg_time) {
		this.reg_time = reg_time;
	}

	public String getPhoto_link() {
		return photo_link;
	}

	public void setPhoto_link(String photo_link) {
		this.photo_link = photo_link;
	}
	
}